package routers

import (
	"admissionsystem/middleWare"

	"github.com/gin-gonic/gin"
)


func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/")
	examineeRouter(r)
	majorRouter(r)
	admissionRouter(r)
	fexamRouter(r)
	sexamRouter(r)
	loginRouter(r)
}

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(middleWare.Cors())
	g := r.Group("")
	sysNoCheckRoleRouter(g)
	return r
}
